package com.hmall.common.feign;


import com.hmall.common.pojo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * order的远程Feign
 */
@FeignClient(name = "orderservice")
public interface OrderClientFeign {
    @GetMapping("/order/{id}")
    Order weight (@PathVariable("id") Long id);
}
